<?php
namespace app\api\controller;

use app\api\controller\Base;

/**
 * 公共信息
 */
class Vip extends Base
{
    /**
     * 调用会员等级
     * @url     
     * @http    post
     * @data    
     * @return  array of getGoodsTypeList item , code 0
     *
     */
    public function getviplist()
    {
        if (request()->isPost()) {
            $list = db('vip_cate')->where(['status'=>0])->order('level desc')->select();
            return model('Res')->ctx($list);
        } else {
            return model('Res')->noPost();
        }
    }
    
}
